package com.macaline.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.UUID;

@Data
@TableName(value = "seckill")
public class Seckill {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id; // id
    private Integer num; // 库存
    private Integer updateNum; // 修改次数
    @TableField(exist = false)
    private String uuid = UUID.randomUUID().toString();
//    @Version
//    private Integer version; // 乐观锁

}
